package com.learnyou.server.xingzuo.dto.resultDTO;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.learnyou.server.xingzuo.common.enums.StudentScheduleActionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class StudentScheduleLogDTO {

    private Integer id;

    @ApiModelProperty(value = "学生ID")
    private Integer studentId;

    @ApiModelProperty(value = "课次ID")
    private Integer courseScheduleId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "学生的课次ID")
    private Integer studentScheduleId;

    @ApiModelProperty(value = "当前课时（变化后）")
    private Integer scheduleCountCurrent;

    @ApiModelProperty(value = "动作变化的课时")
    private Integer scheduleCountChange;

    @ApiModelProperty(value = "动作类型")
    private StudentScheduleActionEnum action;

    @ApiModelProperty(value = "动作产生的原因")
    private String actionReason;

    @ApiModelProperty(value = "动作描述")
    private String remark;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date createdAt;
}
